


//查表 医院信息

let paths = [
    {name:'首页',path:'home',com:'Home'},
    {name:'预约挂号',path:'guahao',com:'Guahao',father:'预约管理'},
    {name:'预约体检',path:'tijian',com:'Tijian',father:'预约管理'},
    {name:'医院信息',path:'yiyuan',com:'Yiyuan'},
    {name:'数据统计',path:'datas',com:'Datas'}
]

export function  getPathR(val:string){
     
     let obj  = paths.find((item)=>{
         return item.name ==val
     })

     if(obj){
            
        return obj
     }else{
        return {path:'home1',com:'Home1'}
     }
}


export function  getPathN(val:string){  ///layout/yiyuan
     
    let obj  = paths.find((item)=>{
        return `/layout/${item.path}`==val
    })

    if(obj){
           
       return obj
    }else{
       return {path:'home1',com:'Home1'}
    }
}